package top.lenjon.lib.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 附件
 * </p>
 *
 * @author wei
 * @since 2020-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * ISBN
     */
    private String isbn;

    /**
     * 书名
     */
    private String title;

    /**
     * 作者
     */
    private String author;

    /**
     * 上架状态
     */
    private Boolean status;

    /**
     * 描述
     */
    private String description;

    /**
     * 出版社
     */
    private String publishingHouse;

    /**
     * 位置
     */
    private String location;

    /**
     * 借阅状态
     */
    private Boolean loan;

    /**
     * 借阅人id
     */
    private Integer borrowerId;


}
